

import json

class Record:
    def __init__(self):
        self.logic_data = []

    def add_data(self, data):
        self.logic_data.append(data)

    def get_data(self):
        return self.logic_data
    
    def save_data_to_file(self, file_path):
        try:
            with open(file_path, 'w') as f:
                json.dump(self.logic_data, f)
        except Exception:
            pass
        
